package com.joyintech.controller;

import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * 消息发送登记表 实体类
 *
 * @author wjx
 * @date 2022-12-09
 * @change 2022-12-09 by wjx for init
 */
@Data
public class TestPageVo implements Serializable {
    /**
     * 消息id
     */
    @NotNull(message = "模版id不能为空")
    private Integer modelId;

    /**
     * 发送方
     */
    @NotBlank(message = "发送方不能为空")
    private String sender;


    /**
     * 是否发送成功（0：失败  1：成功 2:未知）
     */
    private String flag;

    /**
     * 页数
     */
    @NotNull(message = "pageSize不能为空")
    Integer pageSize;
    /**
     * 页码
     */
    @NotNull(message = "pageNumber不能为空")
    Integer pageNumber;

    @Override
    public String toString() {
        return "TestPageVo{" +
                "modelId=" + modelId +
                ", sender='" + sender + '\'' +
                ", flag='" + flag + '\'' +
                ", pageSize=" + pageSize +
                ", pageNumber=" + pageNumber +
                '}';
    }
}
